﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace MindASPCoreWebAPI.Repository.Migrations
{
    public partial class llppii : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "dictionary_table",
                columns: table => new
                {
                    id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    dt_key = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    dt_type_key = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    dt_name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    dt_status = table.Column<int>(type: "int", nullable: false),
                    dt_orderby = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    creator_name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    creator_date = table.Column<DateTime>(type: "datetime2", nullable: false),
                    modifi_name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    modifi_date = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_dictionary_table", x => x.id);
                });

            migrationBuilder.CreateTable(
                name: "dictionary_type_table",
                columns: table => new
                {
                    dt_type_key = table.Column<string>(type: "nvarchar(450)", nullable: false),
                    dt_type_name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    dt_type_rema = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    dt_type_order = table.Column<int>(type: "int", nullable: false),
                    create_name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    creator_date = table.Column<DateTime>(type: "datetime2", nullable: false),
                    modifi_name = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    modifi_date = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_dictionary_type_table", x => x.dt_type_key);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "dictionary_table");

            migrationBuilder.DropTable(
                name: "dictionary_type_table");
        }
    }
}
